package com.camerareader.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;

/**
 * Created by Administrator on 2016-12-07.
 */

public class CommonUtil {
    private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINA);
    private static Calendar instance = Calendar.getInstance();

    public static String getFormatTime(long millSeconds){
        instance.setTimeInMillis(millSeconds);
        return format.format(instance.getTime());
    }
}
